export default {
  namespaced: true,
  state: {
    name: '周小叔叔'
  },
  getters: {
    name: (state) => state.name
  },
  mutations: {
    nameFn: (state, data) => {
      state.name = data
    }
  },
  actions: {
    nameFnSync: ({ commit }, { data, time }) => {
      setTimeout(() => {
        commit('nameFn', data)
      }, time)
    }
  }
}
